﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace Host
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IQuizService" in both code and config file together.
    [ServiceContract]
    public interface IQuizService
    {
        /// <summary>
        /// Returns empty Quizes (just ID and Name) of difficulty
        /// </summary>
        /// <param name="difficulty"></param>
        /// <returns></returns>
        [OperationContract]
        List<BLL.Quiz> GetQuizesByDifficulty(int difficulty);

        [OperationContract]
        BLL.Quiz GetQuiz(int id);

        [OperationContract]
        void SaveScore(string name,int score,int quizId);

        [OperationContract]
        List<BLL.Highscore> GetHighscores();

    }
}
